package com.gmrz.uaf.servlet.v1.filter;

import java.io.PrintWriter;
import java.io.Writer;

/**
 * Created by gmrz-ops on 2017/7/12.
 */
public class UAFWriter extends PrintWriter {
    private StringBuilder buffer;

    public UAFWriter(Writer out) {
        super(out);
        buffer = new StringBuilder();
    }

    @Override
    public void write(String s) {
        super.write(s);
        buffer.append(s);
    }

    public String getContent(){
        return buffer.toString();
    }
}
